package com.newsystem.mapper;

import com.newsystem.pojo.Medium;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.newsystem.pojo.NewsCover;
import com.newsystem.pojo.User;
import com.newsystem.pojo.vo.MediumInfo;
import com.newsystem.pojo.vo.MediumInfo2;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 媒体号 Mapper 接口
 * </p>
 *
 * @author chenlitao
 * @since 2022-11-06
 */
@Mapper
public interface MediumMapper extends BaseMapper<Medium> {

    MediumInfo selectByMediumId(String userId);

    int updateMedium(MediumInfo2 mediumInfo);

    Medium selectByUserId(String mediumId);

    List<NewsCover> selectNewsCoverListByUserId(@Param("userId") String userId, @Param("startPage") Integer startPage,@Param("sumPage") Integer sumPage);
}
